<script setup lang="ts">
const handleError = () => clearError({ redirect: '/' })
</script>

<template>
    <div>
        <button @click="handleError">返回主页</button>
    </div>
</template>
